FROM openjdk:17-jdk-slim
VOLUME /tmp
COPY start-1.0.0-SNAPSHOT.jar app.jar


# 设置启动命令，添加JVM优化参数
ENTRYPOINT ["java","-Xmx512m","-Xms256m","-XX:+UseG1GC","-jar","/app.jar"]